import type { MaterialDescription } from '@vtj/core';

const desc: MaterialDescription = {
  name: 'VDesign',
  label: '流程设计器',
  categoryId: 'base',
  props: [
    {
      name: 'assigneeOptions',
      label: '审批人选项',
      title: '审批人下拉选项数据',
      type: ['Array'],
      setters: 'ArraySetter'
    },
    {
      name: 'candidateUserOptions',
      label: '候选用户选项',
      title: '候选用户下拉选项数据',
      type: ['Array'],
      setters: 'ArraySetter'
    },
    {
      name: 'candidateGroupOptions',
      label: '候选组选项',
      title: '候选组下拉选项数据',
      type: ['Array'],
      setters: 'ArraySetter'
    }
  ],
  events: [
    {
      name: 'save',
      params: ['xml'],
    }
  ],
};

export default desc;